<html>

<head>
    <meta charset="UTF-8">
    <script>
        function getBrowserUrl(){
            var url = window.location.href;
            alert(url)
        }
    </script>
</head>
    <body onload="getBrowserUrl()">
        <h1>hello word!!!</h1>
        <p>this is a html page</p>
    </body>
</html>